package com.wp.design.chain;

import org.springframework.util.StringUtils;

public class VideoHandler extends CourseHandler {
	@Override
	public void deploy(Course course) {
		if (!StringUtils.isEmpty(course.getVedio())){
			System.out.println(course.getCourseName()+"视频不为空，通过批准");
			if (courseHandler !=null) {
				courseHandler.deploy(course);
			}
		}else{
			System.out.println(course.getCourseName()+"视频为空，不批准");
			return;
		}
	}
}
